package com.ruixun.shopmanagement.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.ruixun.shopmanagement.entity.Order;
import com.ruixun.shopmanagement.entity.Orders;

@Repository
public interface OrdersMapper {
   boolean insertOrder(Orders order);
   Orders selectOrderByOid(String oid); 
//   List<Orders> selectOrderByUid(String uid); 
   List<Order> selectOrderAndOrderItemByUid(@Param(value = "uid")String uid, @Param(value = "start")Integer start,@Param(value = "length")Integer length,@Param(value = "asc")boolean asc);
//   List<Order> selectOrderAndOrderItemByUid(String uid, Object beginRows, Integer pageSize);
   int selectTotalOrderByUid(String uid);
}